package com.project.fiveCerealsSavoury.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.project.fiveCerealsSavoury.domain.Order;
import com.project.fiveCerealsSavoury.domain.OrderState;
import com.project.fiveCerealsSavoury.domain.User;
import com.project.fiveCerealsSavoury.exception.BizException;
import com.sun.org.apache.xml.internal.resolver.helpers.PublicId;

public interface UserService {
	/**
	 * 注册
	 * @param user
	 */
	public void reg(User user)throws BizException;
	/**
	 * 登录
	 * @param name
	 * @param passwd
	 * @return
	 */
	public User login(String name,String passwd)throws BizException;
	/**
	 * 修改信息
	 * @param user
	 * @return
	 */
	public int setUser(String newPasswd,String newPhone,Integer userId)throws BizException;
	/**
	 * 充值
	 * @param money
	 * @return
	 */
	public int fullMoney(Double money,Integer id)throws BizException;
	/**
	 * 根据用户名Id用户
	 * @param userName
	 * @return
	 */
	public User query(Integer userId)throws BizException;
	/**
	 * 查询所有用户
	 * @param user
	 * @return
	 */
	public List<User> queryName(User user);
	/**
	 * 查询所有管理员
	 */
	public List<User> queryIsAdmin(String isAdmin)throws BizException;
	
//	public boolean remove(Integer id) throws BizException;
	/**
	 * 修改是否签收状态
	 */
	public boolean remend(Integer id,String isSign)throws BizException;
	
}
